//漏了count计数
public class Program11 {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 1; i < 5; i++) {
            for (int j = 1; j < 5; j++) {
                for (int k = 1; k < 5; k++) {
                    while (i != j && i!= k && j != k){
                        System.out.println(i*100+j*10+k);
                        count++;
                        break;
                    }
                }
            }
        }
        System.out.println("共有"+count+"个三位数");
    }
}